package com.exonline.backstage.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Direction {
    public  String directionName;
    public List<Subject> subjects = new ArrayList<>();

    public List<Subject> addSubjects (Subject subject) {
        subjects.add(subject);
        return subjects;
    }
}
